Fix casting problem in gmodule code.
authorBrian Cameron <Brian.Cameron@sun.com>
Fri, 24 Apr 2009 22:20:03 +0000 (17:20 -0500)
committerBrian Cameron <Brian.Cameron@sun.com>
Fri, 24 Apr 2009 22:20:03 +0000 (17:20 -0500)
commitfa00f3e50a4a5a16ca00b08308f7fa6008b45d3e
tree648423d1d47de0524f8ecec2140a1b5b8b1b5e59
parent459b6a2e728ec4e8b48b3fcc3b4ec63c41e0c9d4
Fix casting problem in gmodule code.

This fixes bug 579884.  Previously the return value of g_slist_find_custom was
being recasted as type (GtkModuleInfo *).  This patch sets the return value
to a temporary variable of type (GSList *), and sets info to temp->data.  This
avoids a crashing problem.
gtk/gtkmodules.c